package server.utils;

/**
 * 键值对
 */
public class KV<T, E>
{
	private T key;

	private E value;
	
	public static <T, E> KV<T, E> create()
	{
		return new KV<T, E>();
	}

	public void setKV(T key, E value)
	{
		this.key = key;
		this.value = value;
	}
	
	public KV()
	{
		
	}
	
	
	public void setKey(T key) {
		this.key = key;
	}

	public void setValue(E value) {
		this.value = value;
	}

	public KV(T key, E value)
	{
		this.key = key;
		this.value = value;
	}

	public T getKey()
	{
		return key;
	}

	public E getValue()
	{
		return value;
	}
}
